package org.NooLab.itexx.storage;

import java.io.Serializable;
import java.util.ArrayList;

 



public class TexxDataBaseSettings 
									implements 
												TexxDataBaseSettingsIntf,
												Serializable{

	DataBaseAccessDefinitionIntf dbAccessDefinition;
	
	String dataBaseName = "", userName ="",password="";
	
	//=========================================================================	
	public TexxDataBaseSettings(DataBaseAccessDefinitionIntf dbAccessDef){
		dbAccessDefinition = dbAccessDef;	
	}
	//=========================================================================
	
	@Override
	public ArrayList<String> getTableFields() {
		ArrayList<String> fields = new  ArrayList<String>();
		
		
		return fields;
	}

	@Override
	public void setDatabaseName(String dbname) {
		 
		dataBaseName = dbname;
	}

	@Override
	public void setDatabaseUser(String user) {
		 
		userName = user;
		dbAccessDefinition.setDbUser(userName) ;
	}

	@Override
	public void setDatabasePwd(String pwd) {
		 
		password = pwd;
		dbAccessDefinition.setDbpassword( password) ;
	}

	@Override
	public DataBaseAccessDefinitionIntf getDbAccessDefinition() {
		return dbAccessDefinition;
	}

	public String getDataBaseName() {
		return dataBaseName;
	}

	public void setDataBaseName(String dataBaseName) {
		this.dataBaseName = dataBaseName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setDbAccessDefinition(DataBaseAccessDefinitionIntf dbAccessDefinition) {
		this.dbAccessDefinition = dbAccessDefinition;
	}
	
	
}
